<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>JS 对象</h1>
    <hr>

    <script>
        var obj = {
            name: '莉莉', 
            age: 18, 
            demo:function(){
                console.log(1234567);
            }
        };

        delete obj.name;
        delete obj.age;
        delete obj.demo;

        console.log(obj);
        obj.demo();


    </script>
</body>
</html>